package com.cykj.controller;

import com.cykj.dto.ResponseDTO;
import com.cykj.service.IRoleService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Program: Mooc-Admin
 * @Package: com.cykj.controller
 * @Author: 张俊杰
 * @Create: 2025-07-11 10:13
 * @Description: TODO
 * @Vision: 1.0
 **/
@RestController
@RequestMapping("role")
public class RoleController {

    @Autowired
    private IRoleService roleService;

    @Operation(summary = "查看角色")
    @GetMapping("list")
    public ResponseDTO getListRole() {
        return roleService.getListRole();
    }
}
